/**
 * 子弹基类
 */
var EnumBullet = require('./../Enum/EnumBullet');
var EnumBody = require('./../Enum/EnumBody');
var BaseBodyIE = require('./../BaseBodyIE');

cc.Class(
{
    extends: BaseBodyIE,
    properties:
    {
        enumBullet:
        {
            default: EnumBullet.NONE,
            type: EnumBullet,
            displayName: "子弹类型",
            visible: false
        }
    },

    onLoad()
    {
        this._super();
        this.setEnumBody(EnumBody.BULLET);
    },

    setEnumBullet(_enumBullet)
    {
        this.enumBullet = _enumBullet;
    },

    getEnumBullet()
    {
        return this.enumBullet;
    },

    onCollisionEnter: function(other)
    {
        // this.node.destroy();
        return other.getComponent('BaseBodyIE');
    },
});